import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/in_order_page_goods_details_entity.dart';


InOrderPageGoodsDetailsEntity $InOrderPageGoodsDetailsEntityFromJson(Map<String, dynamic> json) {
  final InOrderPageGoodsDetailsEntity loginBeanEntity = InOrderPageGoodsDetailsEntity();

  final String? goodsBarCode = jsonConvert.convert<String>(json['goodsBarCode']);
  if (goodsBarCode != null) {
    loginBeanEntity.goodsBarCode = goodsBarCode;
  }

  final String? goodsName = jsonConvert.convert<String>(json['goodsName']);
  if (goodsName != null) {
    loginBeanEntity.goodsName = goodsName;
  }

  final double? purchaseWeight = jsonConvert.convert<double>(json['purchaseWeight']);
  if (purchaseWeight != null) {
    loginBeanEntity.purchaseWeight = purchaseWeight;
  }

  final double? stockInWeight = jsonConvert.convert<double>(json['stockInWeight']);
  if (stockInWeight != null) {
    loginBeanEntity.stockInWeight = stockInWeight;
  }

  return loginBeanEntity;
}

Map<String, dynamic> $InOrderPageGoodsDetailsEntityToJson(InOrderPageGoodsDetailsEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['goodsBarCode'] = entity.goodsBarCode;
  data['goodsName'] = entity.goodsName;
  data['purchaseWeight'] = entity.purchaseWeight;
  data['stockInWeight'] = entity.stockInWeight;
  return data;
}
